@extends('layout.admin')

@section('title','会员管理列表')

@section('content')
<style type="text/css">
	#pages li{
		background-color: #444444;
	    border-left: 1px solid rgba(255, 255, 255, 0.15);
	    border-right: 1px solid rgba(0, 0, 0, 0.5);
	    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
	    color: #fff;
	    cursor: pointer;
	    display: block;
	    float: left;
	    font-size: 12px;
	    height: 20px;
	    line-height: 20px;
	    outline: medium none;
	    padding: 0 10px;
	    text-align: center;
	    text-decoration: none;
	}
	#pages .disabled{
		color: #666666;
    	cursor: default;
	}

	#pages .active{
		background:#808080;
		color:#323232;
	}

	#pages{
		height:auto;
		overflow:hidden;
		padding:0px;
		margin:0px;
	}

	#pages ul{
		padding:0px;
		margin:0px;
	}
	.a a{
		color:skyblue;
	}
</style>
<div class="mws-panel grid_8">
	
  <div class="mws-panel-header">
    <span>
      <i class="icon-table"></i>会员管理列表</span>
  </div>

  <div class="mws-panel-body no-padding">
    <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
    <form action="/vip/index" method="get">
      <!-- <div id="DataTables_Table_0_length" class="dataTables_length">
        <label>显示
          <select size="1" name="num" aria-controls="DataTables_Table_0">
            <option value="10" @if($request->input('num') == 5) selected @endif>5</option>
            <option value="25" @if($request->input('num') == 10) selected @endif>10</option>
            <option value="50" @if($request->input('num') == 30) selected @endif>30</option>
            <option value="100" @if($request->input('num') == 50) selected @endif>50</option>
          </select>条
        </label>
      </div> -->
      <div class="dataTables_filter" id="DataTables_Table_0_filter">
        <label>查询:
          <input aria-controls="DataTables_Table_0" name="keyword" value="{{$request->input('keyword')}}" type="text">&nbsp;&nbsp;<button class="btn btn-info"><i class="icon-search"></i></button>
        </label></div>
    </form>
      <table class="mws-datatable mws-table dataTable" id="DataTables_Table_0" aria-describedby="DataTables_Table_0_info">
        <thead>
          <tr role="row">
            <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 187px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 249px;" aria-label="Browser: activate to sort column ascending">用户名</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 233px;" aria-label="Platform(s): activate to sort column ascending">积分</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 233px;" aria-label="Platform(s): activate to sort column ascending">等级</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 233px;" aria-label="Platform(s): activate to sort column ascending">注册时间</th>
            <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_0" rowspan="1" colspan="1" style="width: 118px;" aria-label="CSS grade: activate to sort column ascending">操作</th></tr>
        </thead>
        <tbody role="alert" aria-live="polite" aria-relevant="all">
          @foreach($vip as $k=>$v)
          <tr class="@if($k%2 == 1) odd @else even @endif">
            <td class="  sorting_1">{{$v->id}}</td>
            <td class=" ">{{$v->username}}</td>
            <td class=" ">{{$v->jifen}}</td>
            <td class=" ">{{$v->dengji}}</td>
            <td class=" ">{{$v->register}}</td>
            <td class="a"><a href="/vip/edit?id={{$v->id}}">修改</a>&nbsp;&nbsp;&nbsp;<a href="/vip/delete?id={{$v->id}}">删除</a></td>
          </tr>
         @endforeach 
        </tbody>
      </table>
      <div class="dataTables_paginate paging_full_numbers" id="DataTables_Table_1_paginate">
      <div id="pages">
        {!! $vip->appends($request->all())->render() !!}
        </div>
      </div>
    </div>
  </div>
</div>
@endsection
